<template>
  <nut-button type="primary" @click="logout()">退出</nut-button>
</template>
<script lang="ts">
import Taro from "@tarojs/taro";

export default {
  setup() {
    const logout = () => {
      Taro.removeStorageSync("access_token");
      Taro.reLaunch({
        url: "/pages/login/login",
      });
    };
    return { logout };
  },
};
</script>

<style lang="scss">
</style>